'''
Created on Nov 22, 2011

@author kllvql

This file hosts the configuration variables for the DiceScale project

'''


'''
These Break Points are used to determine the cutoffs between the various
colors. A number for each pixel corresponding to it's brightness is 
generated between 0 and 6. These BREAK_POINTS represent where the cutoff
is between each shade. I have played around with these values a lot. If
you leave a list of lists of the five breakpoints, the code will 
generate a diceScale image for each break point. 
'''
BREAK_POINTS = [[5.0,4.0,3.0,2.0,0.8], \
				[4.8,3.6,2.4,1.2,0.4], \
				[5.2,4.4,3.6,2.6,1.3]] 
#BREAK_POINTS =  [[5.2,4.4,3.9,2.6,1.3]]


'''
The fileName is the base name for the file to be worked with by this 
program. fileNameVersions is a list of modifications to the file name
to support iterating easily through multiple versions of the image. 
fileExtension is the extension of the original file. It should support 
whatever image version the Python Imaging Library supports (at least 
jpg, png, and gif). The name for each file this program works on is
fileName + fileNameVersions + fileExtension 
'''
fileName = "puppy"
#fileName = "Obama"
#fileNameVersions = ["11", "12", "13", "14", "15", "16", \
#					"21", "22", "23", "24"]
fileNameVersions = [""]
#fileNameVersions = ["5", "6"]
fileExtension = ".jpg"


'''
So, this value probably needs to be re-written, but basically it amounts
to how detailed the final image is. A scale of 1 means the final image 
is the same dimensions as the original image. A scale of 8 means the 
final image is 8 * the dimensions of the original image. SCALE_NAMES
should be of same length as SCALES, and these strings will be appended
to the end of the name of the generated image to distinguish between 
them.
'''
#SCALES = [1,2,4]
#SCALES = [2,4,8]
#SCALE_NAMES = ["Low", "Med", "High"]
SCALES = [2,4,8,16]
SCALE_NAMES = ["bLow","cMed","dHigh","eReallyHigh"]

'''
This list provides a methodology to exclude specific fileNameVersion-
SCALE pairs from being generated, in case the user knows for sure that
a given combination will suck. This is a list of lists with the sub-list
being a pair of values, one for an index for fileNameVersion, and a 
second for an index for SCALE.
'''
#TODO: MAKE THIS WORK!!!
EXCLUSIONS = [[0,1],[0,2],[6,2],[7,2],[8,2],[3,0],[4,0],[5,0]]


'''
DIE_WIDTH, DIE_HEIGHT, and PIP_SIZE are relatively self-explanatory. 
They are measured in pixels. Though my code should run regardless, it 
will probably only produce pretty dice if the die dimensions are 
multiples of 16 and the pip size is a multiple of 4. Ideally 
DIE_WIDTH=DIE_HEIGHT=4*PIP_SIZE
'''
DIE_WIDTH, DIE_HEIGHT = 16,16
PIP_SIZE = 4

'''
The foreground and background colors for the dice. YAY! I love 
hexadecimal colors!
'''
DIE_BG = "#000000"
DIE_FG = "#FFFFFF"


'''
All output files are prepended with outputMark to make them easier to 
distinguish
'''
outputMark = "o"

